import json

weatherData = open("天气预报json.txt",mode="rt",encoding="UTF-8").read()
weatherDictionary = json.loads(weatherData)
weatherList = weatherDictionary.get("result").get("future")
print("\n苏州市未来三天天气情况为：\n")
for i in range(3):
    date = weatherList[i].get("date")
    temperature = weatherList[i].get("temperature")
    weather = weatherList[i].get("weather")
    print("{}\t{}\t\t{}".format(date,temperature,weather))


